Page({
  data:{},
  onLoad:function(options){
      var that = this;
      wx.request({
        url: 'http://mobile.api.hunantv.com/channel/getWPDetail',
        header:{
            'Content-Type': 'application/json'
        },
        success: function(res){
            that.getProcessData(res.data);
        }
      });
  },
  getProcessData:function(res){
      var tvArr = [];
      var tvData = res.data;
      for(var i=0;i<tvData.length;i++){
          var temp = {
              picImg:tvData[i].picUrl,
              name:tvData[i].name,
          }
          tvArr.push(temp);
      }
      this.setData({
          tv:tvArr
      })
  },
})